/**
 * Created by fanyongsheng on 2016/10/29.
 */

var apiRepair = "../index/";
var apiRecycle = "../index_recycle/";

function go_lucency_result(){
    $(window.parent.document).find('body').addClass('active');
}

function login(){
    $.post('http://www.gojiw.com/gojiw/index/index/index.php?m=Home&c=Weixin&a=getAccreditUrl',{url:window.location.href},function(data){
        if(data.code==200){
           location.href = data.data;
        }
    },'json');
}


function phone_getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]); return '';
}

/**
 * 手机号码显示保护
 * @param phone
 * @returns {string}
 */
function protect_phone_info(phone){
    return phone.substring(0,3)+"****"+phone.substring(8,11);
}

var recycleStatus = {
	"-1":"已下单",
	"0":"已下单",
	"1":"已接单",
	"2":"待回收",
	"3":"待确认",
	"4":"已取消",
	"5":"待确认",
	"6":"已完成",
	"7":"已完成"
};

$(document).ready(function(){
	$('body').addClass('splat');
});